package com.you.weixinpay.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.you.weixinpay.domain.entity.TOrderInfo;

import java.time.LocalDateTime;
import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yzm
 * @since 2025-06-15
 */
public interface TOrderInfoService extends IService<TOrderInfo> {

    TOrderInfo createOrderByProductId(Long productId,String PaymentType, Long userId);

    void updateStatusByOrderNo(String outTradeNo, String status);

    String getOrderStatus(String outTradeNo);

    List<TOrderInfo> getUnpaidOrders(LocalDateTime fiveMinutesAgo);

    Page<TOrderInfo> getList(Page<TOrderInfo> page, String title);

    TOrderInfo getOrderByOrderNo(String outTradeNo);
}
